cmake_minimum_required(VERSION 3.0.0)
project(demo VERSION 0.1.0 LANGUAGES C)

include(CTest)
enable_testing()

#add_executable(demo main.c)

set(CPACK_PROJECT_NAME ${PROJECT_NAME})
set(CPACK_PROJECT_VERSION ${PROJECT_VERSION})
include(CPack)

include_directories(
${PROJECT_SOURCE_DIR}/inc    
)

set(SRC 
${PROJECT_SOURCE_DIR}/src/memory_dump.c
${PROJECT_SOURCE_DIR}/src/test_for_pointer.c
${PROJECT_SOURCE_DIR}/src/test_for_sizeof.c
${PROJECT_SOURCE_DIR}/app/main.c
${PROJECT_SOURCE_DIR}/src/test_for_hash.c
${PROJECT_SOURCE_DIR}/src/test_for_const.c
${PROJECT_SOURCE_DIR}/src/test_for_singly_linked_list.c
${PROJECT_SOURCE_DIR}/src/test_for_circular_linked_list.c
${PROJECT_SOURCE_DIR}/src/test_for_twosum.c
)
   
# 可执行文件生成
add_executable(${PROJECT_NAME} ${SRC})
